package demo2.assignment4;

/**
 * @author Leon(赵亮)
 * @version 1.0.0
 * 10 Sep 2021
 * this is JP Tax calculate with Strategy Pattern
 */
public class JapanTaxCalculate implements TaxCalculate {
    @Override
    public double calculateTax(double amount) {
        System.out.println("init amount is " + amount);
        return amount * 0.008;
    }
}
